<?php 
/**
* 数据操作类
*/
class Model 
{
	public $table;
	public static $db;
	public $error;
	function __construct($table='')
	{
		$this->table= $table;
		try {
			if(!self::$db){
				self::$db = @new PDO(C('DB_TYPE').":host=".C('DB_HOST').";dbname=".C('DB_NAME').";charset=utf8",C('DB_USER'),C('PASS'));
			}
		} catch (PDOException $e) {
			$this->error = $e->getMessage();
		}
	}

	public function find($value='')
	{
		# code...
	}

	public function del($value='')
	{
		# code...
	}

	public function select($value='')
	{
		# code...
	}

	public function where($value='')
	{
		# code...
	}

	public function limit($value='')
	{
		# code...
	}

	public function query($value='')
	{
		# code...
	}

	public function exec($value='')
	{
		# code...
	}
}















 ?>